{include file="public/header" /}
<style>
    .new-record-li{
        position: relative;
        width: 94vw;
        height: 37.6vw;
        border: none;
        border-radius: 10px;
        margin: 10px auto !important;
        padding: 0px !important;
    }
    .tpl_list li:first-child{
        margin-top: 0px !important;
    }
    .bottombar{
        width: 100% !important;
        display: block !important;
    }
    .groupbtn{
        background: var(--bc);
        color: #fff;
        font-size: 0.9rem;
        border-radius: 5px;
        padding: 5px 20px;
        margin-left: auto;
        display: inline-table;
        margin-top:10px;
        margin-bottom: 10px;
    }
    .group_mr{
        background: var(--c9) !important;
    }
    .layui-progress-bar{
        color: #fff;
        font-size: 0.9rem;
        padding-right: 5px;
    }
    .photo{
        position: absolute;
        width: 100%;
        height: 100%;
        z-index: 9;
        left: 0;
        top: 0;
        border-radius: 10px;
    }
    .times{
        color: #fff !important;
        font-size: 14px !important;
        font-weight: 600 !important;
    }
    .center{
        position: absolute;
        z-index: 999;
        left: 6vw;
        top: 20vw;
    }
</style>
<body class="bgc record-bgc">
<div class="header">
    <i class="layui-icon layui-icon-left goBack"></i>缔造
</div>

<ul class="new-record tpl_list">
</ul>

<script id="template" type="text/html">
    {{# for(var i=0;i < d.data.length ;i++){ }}
    <li class="new-record-li">
        <img src="{{d.data[i].images}}" class="photo"/>
        <div class="center">
            <div class="bottom">
                <p class="times">缔造时间：{{d.data[i].start_time}} -- {{d.data[i].end_time}}</p>
            </div>
            <div class="bottom bottombar">
                {{# if(d.data[i].is_time == 1){ }}
                    <div class="groupbtn group_mr">缔造未开始</div>
                {{# }else if(d.data[i].is_time == 2){ }}
                    <div class="groupbtn group_mr">缔造已结束</div>
                {{# }else{ }}
                    <div class="groupbtn" onclick='location.href="/index/wholesale/info.html?id={{d.data[i].id}}"'>参与缔造</div>
                {{# } }}
            </div>
        </div>
    </li>
    {{# } }}
</script>

{include file="public/menu" select="3" /}
</body>
{include file="public/footer"/}
<script>
    $(function () {
        getFlow(1, "{:url('wholesale/getList')}");
    });
</script>
</html>